import { axios } from '../utils/http'

/**
 * @description 获取歌曲详情
 * @param { Number } ids - 歌曲id
 * @param { Number } timestamp - 防止接口缓存
 */
export const SongDetail = ids => {
  const params = {
    ids: ids,
    timestamp: new Date().getTime()
  }
  return axios.get('/song/detail', { params })
}

/**
 * @description 获取歌词
 * @param { Number } id - 歌曲id
 */

export const SongLriyc = id => {
  const params = {
    id
  }
  return axios.get('/lyric', { params })
}

/**
 * @description 获取相似歌曲
 * @param {Number} id - 歌曲id
 * @returns 
 */
export const SimiSong = id => {
  const params = {
    id
  }
  return axios.get('/simi/song', { params })
}